@tailwind base;
@tailwind components;
@tailwind utilities;


.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.item-center {
    align-items: center;
}

.item-start {
    align-items: flex-start;
}

.flex-1 {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

.flex-col {
    flex-direction: column;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.font-bold {
    font-weight: bold;
}

.text-3xl {
    font-size: 3rem;
}

.text-white {
    color: white;
}

.p-2 {
    padding: 2rem;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.item-end {
    align-items: flex-end;
}

.item-start {
    align-items: flex-start;
}

.bg-white {
    background-color: white;
}

.mx-2 {
    margin: 0 2rem;
}

/* 全局响应式基础样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 图片响应式 */
img {
    max-width: 100%;
    height: auto;
}

/* 基础响应式容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 全局响应式断点 */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .mx-2 {
        margin: 0 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .mx-2 {
        margin: 0 0.5rem;
    }

    /* 横幅图片响应式 */
    .banner-image {
        height: 250px !important;
    }

    /* 标题响应式 */
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    /* 按钮响应式 */
    .btn {
        padding: 8px 20px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .mx-2 {
        margin: 0 0.25rem;
    }

    /* 横幅图片响应式 */
    .banner-image {
        height: 200px !important;
    }

    /* 标题响应式 */
    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }

    /* 按钮响应式 */
    .btn {
        padding: 6px 16px !important;
        font-size: 13px !important;
    }

    /* 文字响应式 */
    p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
}

/* 隐藏滚动条但保持滚动功能 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}